package org.dromara.system.domain.bo.cparams;

import com.alibaba.fastjson2.JSONObject;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;

@Data
public class OrderUpdateBo {

    //订单ID
    @NotNull(message = "[order_id] cannot be empty", groups = { AddGroup.class })
    private Long order_id;
    //card
    private String card;
    //session_id
    private String session_id;
    //平台订单号
    private String payment_id;
    //订单状态
    private Integer code;
    //失败消息
    private String fail_msg;
    //错误消息
    private String error_msg;

    //风险级别
    private String risk;
    //风险细节
    private String risk_detail;

    //退款ID
    private String refund_id;
    //退款状态
    private Integer refund_code;

    //争议ID
    private String dispute_id;
    //争议状态
    private Integer dispute_code;

    //卡国家
    private String bin_country;
    //3ds
    private String is_3ds;
    //缴费记录ID
    private String charge_id;
    //付款信息
    private Object buyer;

    //支付平台请求信息
    private String request;
    //支付平台返回信息
    private String response;

    private String order_task;
    //审核站订单ID
    private String c_id;
    //推送状态  successed   failed
    private String build_status;
    //审核站产品ID
    private String p_id;

    //类型
    private String type;
    //source
    private String source;
    //orderSn
    private String terminal_order_sn;

    public OrderUpdateBo() {}

    public OrderUpdateBo(Long order_id, int code, String fail_msg) {
        this.order_id = order_id;
        this.code = code;
        this.fail_msg = fail_msg;
    }
}
